package com.itheima.blog.web.dao;

import com.itheima.api.client.vo.ProvinceBLogNum;
import com.itheima.api.client.vo.TBlogByCategoryID;
import com.itheima.api.client.vo.TBlogByTagID;
import com.itheima.blog.web.domain.po.TBlog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import feign.Param;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

/**
 * <p>
 * 博客文章表 Mapper 接口
 * </p>
 *
 * @author hyf
 * @since 2023-07-12
 */
public interface TBlogMapper extends BaseMapper<TBlog> {

    void updateBlog(@Param("tBlog") TBlog tBlog,  Long blogId);
    List<TBlogByTagID> getTBlogByTagID();

    List<TBlogByCategoryID> getTBlogByCategoryID();

    List<ProvinceBLogNum> getProvinceBLogNum(@Param("dateStart") String dateStart, @Param("dateEnd") String dateEnd);

}
